package com.jyxd.web.dao.basic;

import com.jyxd.web.data.basic.BasicNursingSyncRecord;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface BasicNursingSyncRecordDao {

    /**
     * 新增一条基础护理频率记录
     *
     * @param basicNursingSyncRecord
     * @return boolean
     */
    boolean insert(BasicNursingSyncRecord basicNursingSyncRecord);

    /**
     * 根据主键id查询一条基础护理表记录
     *
     * @param id
     * @return BasicNursing
     */
    BasicNursingSyncRecord queryData(String id);

    /**
     * 更新一条基础护理表记录
     *
     * @param basicNursingSyncRecord
     * @return boolean
     */
    boolean update(BasicNursingSyncRecord basicNursingSyncRecord);

    /**
     * 根据条件分页查询基础护理表记录列表
     *
     * @param map
     * @return list
     */
    List<BasicNursingSyncRecord> queryList(Map<String, Object> map);

    /**
     * 根据条件查询列表总记录数
     *
     * @param map
     * @return
     */
    int queryNum(Map<String, Object> map);

    /**
     * 根据病人id  code  查询基础护理频率记录
     *
     * @param map
     * @return
     */
    BasicNursingSyncRecord getDataByPatientIdAndCode(Map<String, Object> map);
}
